<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2021/11/18
  Time: 12:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>String类型传参</h2>
<form action="${pageContext.request.contextPath}/aaa/asdasdasdsaa" method="post">
    <input type="text" name="name"/>
    <input type="password" name="password"/>
    <input type="submit" value="提交"/>
</form>
<hr>
<%--<form action="${pageContext.request.contextPath}/aaa/ddd" method="post">
    请输入请选择对应的一行数据：
    <input type="checkbox" name="ids" value="0">0行  马宇航
    <input type="checkbox" name="ids" value="1">1行  冯玉鑫
    <input type="checkbox" name="ids" value="2">2行  蒋杰鹏
    <input type="submit" value="提交"/>
</form>
<hr>--%>
<h2>Map类型传参</h2>
<form action="${pageContext.request.contextPath}/aaa/ddd" method="post">
    姓名：<input type="text" name="username"/><br>
    年龄：<input type="number" name="age"/><br>
    邮箱：<input type="email" name="email"/><br>
    性别：<input type="radio" name="sex" value="0"/>男<br>
    <input type="radio" name="sex" value="1"/>女<br>
    <input type="checkbox" name="ids" value="0">0行  马宇航
    <input type="checkbox" name="ids" value="1">1行  冯玉鑫
    <input type="checkbox" name="ids" value="2">2行  蒋杰鹏
    <button>新增</button>
</form>
<hr>
<form action="${pageContext.request.contextPath}/aaa/eee" method="post">
    姓名：<input type="text" name="username"/><br>
    年龄：<input type="number" name="age"/><br>
    邮箱：<input type="email" name="email"/><br>
    性别：<input type="radio" name="sex" value="0"/>男<br>
    <input type="radio" name="sex" value="1"/>女<br>
    <button>新增</button>
</form>
<hr>
<form action="${pageContext.request.contextPath}/aaa/fff" method="post">
    姓名：<input type="text" name="persons[0].username"/><br>
    年龄：<input type="number" name="persons[0].age"/><br>
    邮箱：<input type="email" name="persons[0].email"/><br>
    性别：<input type="radio" name="persons[0].sex" value="0"/>男<br>
    <input type="radio" name="persons[0].sex" value="1"/>女<br>
    <button>新增</button>
</form>
<hr>


</body>
</html>
